<%@ page import="java.util.List" %>
<%@ page import="springmvc.bean.Student_homework" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2020/3/9
  Time: 9:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        th{
            border: 1px solid;
        }
    </style>
</head>
<body>
    <form method="post">
        <table align="center" width="1000">
            <tr align="center" bgcolor="#7fffd4" height="50">
                <th>学生编号</th>
                <th>作业编号</th>
                <th>作业标题</th>
                <th>作业内容</th>
                <th>提交时间</th>
            </tr>
            <%
                List<Student_homework> list = (List<Student_homework>)request.getAttribute("homework_list");
                for(Student_homework homework: list){
            %>
            <tr align="center" height="200" >
                <th><%=homework.getStudent_id()%></th>
                <th><%=homework.getHomework_id()%></th>
                <th><%=homework.getHomework_title()%></th>
                <th><%=homework.getHomework_content()%></th>
                <th><%=homework.getTime()%></th>
            </tr>
            <%
                }
            %>
        </table>
    </form>
</body>
</html>
